home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / sos3-2.lha / src / init / init_main.c
C/C++ Source or Header  |  1992-01-23  |  1KB  |  39 lines

  1. /* --------------------------------------------------------------------------
  2.  * Copyright 1992 by Forschungszentrum Informatik (FZI)
  3.  *
  4.  * You can use and distribute this software under the terms of the licence
  5.  * you should have received along with this program.
  6.  * If not or if you want additional information, write to
  7.  * Forschungszentrum Informatik, "STONE", Haid-und-Neu-Strasse 10-14,
  8.  * D-7500 Karlsruhe 1, Germany.
  9.  * --------------------------------------------------------------------------
  10.  */
  11. // SOS root container initialization facility (init)
  12.  
  13. #include "sys.h"
  14. #include "smg.h"
  15. #include "sos.h"
  16. #include "dir_use.h"
  17.  
  18. #ifdef PROFILE
  19. extern "C" void monitor(...);
  20. #endif
  21.  
  22. main (int argc, char *argv[])
  23. {
  24.    sos_init (argc, argv);
  25.  
  26.    sos_Directory dir;
  27.  
  28.    sos_String name = smg_String ("root").make_String (TEMP_CONTAINER);
  29.    ROOT_CONTAINER.open (WRITING, WAITING);
  30.    dir = sos_Object_Directory::create (ROOT_CONTAINER, name);
  31.    ROOT_CONTAINER.close() ;
  32.  
  33. #ifdef PROFILE
  34.    monitor (0);
  35. #endif
  36.  
  37.    exit (0);
  38. }
  39.